package com.taotao.manage.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 通用的页面跳转Controller
 * 
 * @author zhijun
 *
 */
@RequestMapping("page")
@Controller
public class PageController {
//

//    @RequestMapping("/")
//    public String showIndex(){
//        return "index";
//    }
//    @RequestMapping("/rest/page/{page}")
//    public String showPage(@PathVariable String page){
//        return page;
//    }




    @RequestMapping(value = "{pageName}", method = RequestMethod.GET)
    public String toPage(@PathVariable("pageName") String pageName) {
        return pageName;
    }



}
